<#include "/public/macro.html">
<div class="uk-layui-form">
	<form class="layui-form" action="/apps/report/auth/edittype/save.html" method="post">
		<input type="hidden" name="id" value="${dataDic.id!''}">
		<div class="layui-form-item" style="margin-top:20px;">
			<div class="layui-inline">
				<label class="layui-form-label">开启用户权限：</label>
				<div class="layui-input-inline">
					<input type="checkbox" name="userauth" lay-skin="switch" lay-text="开启|关闭" value="1"  <#if dataDic?? && dataDic.userauth>checked="checked"</#if>>
				</div>
			</div>
		</div>

		<div class="layui-form-button">
			<div class="layui-button-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</div>

<script>
layui.use('form', function() {
	var form = layui.form;
	form.render(); //更新全部
});
layui.use('element', function(){
	var element = layui.element;
	element.init();
});
</script>
